package com.fh.alipay.service;

import com.fh.alipay.model.dto.GoodsDTO;
import com.fh.alipay.po.GoodsImg;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.fh.alipay.model.dto.GoodsImgDTO;
import com.fh.alipay.model.query.GoodsImgQuery;
import com.fh.alipay.vo.ApiResult;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;
/**
 * @author fh
 * @date 2022-05-03
 * @description 商品图片表 服务类
 */
public interface IGoodsImgService extends IService<GoodsImg> {

        IPage<GoodsImg> getWithPage(Page page, GoodsImgQuery query);

        GoodsImg getOneByQuery(GoodsImgQuery query);

        List<GoodsImg> getAllByQuery( GoodsImgQuery query);

        ApiResult add(MultipartFile imgFile);

}
